home *** CD-ROM | disk | FTP | other *** search
- Path: galileo.carl.org!echadez
- From: echadez@galileo.carl.org (Edward Chadez)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Transparent color
- Date: 7 Feb 1996 21:09:05 GMT
- Organization: CARL Corporation
- Message-ID: <4fb4dh$nro@hermes.cair.du.edu>
- References: <4f4erl$ppj@strauss.udel.edu>
- NNTP-Posting-Host: galileo.carl.org
- Mime-Version: 1.0
- Content-Type: text/plain; charset=US-ASCII
- Content-Transfer-Encoding: 7bit
- X-Newsreader: TIN [version 1.2 PL2]
-
- John Pat Corigliano (jcorig@strauss.udel.edu) wrote:
- : I am trying to display a BitMap with color 0 being a transparent
- : color, but am having some difficulties :(
-
- : I create a BitMap from an IFF, then create a 1 plane mask by
- : OR'ing all the bitplanes from the BitMap together. I use the
- : BltMaskBitMapRastPort() function with a minterm of 0xC0. Yet,
- : I do not get the desired result. Any ideas?
-
- Not sure if what you're describing will work. You might try 0xE0. Or
- you could scan through the original bitmap with ReadPixel( srcRP, x, y )
- and wherever PEN 0 wasn't used, you could WritePixel( destRP, x, y ) to
- build your mask.
-
- If you have OS 3.x and you're using datatypes, I've written some 'C' code
- that builds a mask for bitmaps with transparent colors (which I finally
- figured out how to do). I can email it to you if you like.
-
- -Ed
- --
- What you percieve here as opinions aren't readily shared by those I work for.
- Edward Chadez, Lead Senior Programmer/Analyst at CARL Corporation
- When web surfing, visit Galileo's Universe at http://galileo.carl.org/
- Amiga user since 1988. Internet surfer since 1989. Grow up, not old.
-